package com.atguigu.atcrowdfunding.service;

import com.atguigu.atcrowdfunding.bean.User;

import java.util.List;
import java.util.Map;

/**
 * lcd  2020/3/22
 * Description:
 */
public interface UserService {
    List<User> queryAll();

    User query4Login(User user);

    List<User> queryPage(Map<String, Object> map);

    Integer queryCount(Map<String, Object> map);

    void insert(User user);

    User findById(Integer id);

    void update(User user);

    void delete(String id);

    void deletes(Map<String, Object> map);

    void doAssignRole(Map<String, Object> map);

    void undoAssignRole(Map<String, Object> map);

    List<Integer> findRoleIdsByUserId(Integer id);
}
